// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package lxcfs

import (
	corev1 "k8s.io/api/core/v1"
)

var LxcfsVolumeMount = []corev1.VolumeMount{
	{
		Name:      "cpuinfo",
		MountPath: "/proc/cpuinfo",
	},
	{
		Name:      "diskstats",
		MountPath: "/proc/diskstats",
	},
	{
		Name:      "meminfo",
		MountPath: "/proc/meminfo",
	},
	{
		Name:      "stat",
		MountPath: "/proc/stat",
	},
	{
		Name:      "swaps",
		MountPath: "/proc/swaps",
	},
	{
		Name:      "uptime",
		MountPath: "/proc/uptime",
	},
}

var LxcfsVolume = []corev1.Volume{
	{
		Name: "cpuinfo",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/var/lib/lxcfs/proc/cpuinfo",
			},
		},
	},
	{
		Name: "diskstats",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/var/lib/lxcfs/proc/diskstats",
			},
		},
	},
	{
		Name: "meminfo",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/var/lib/lxcfs/proc/meminfo",
			},
		},
	},
	{
		Name: "stat",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/var/lib/lxcfs/proc/stat",
			},
		},
	},
	{
		Name: "swaps",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/var/lib/lxcfs/proc/swaps",
			},
		},
	},
	{
		Name: "uptime",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/var/lib/lxcfs/proc/uptime",
			},
		},
	},
}
